##
# An simple Makefile.
#

PWD     := $(shell pwd)

CC      := gcc
INCDIRS := -I$(PWD)/src
CFLAGS  := $(INCDIRS) -Wall

export CC CFLAGS

SUBDIRS = src

.PHONY: subdirs $(SUBDIRS) clean

all: subdirs

subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

clean:
	$(MAKE) clean -C src

